﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>oncut事件应用示例</title>
</head>
<body>
    <p contenteditable="true" oncut="myFunction()">oncut剪切事件的应用</p>
    <script>
        function myFunction() {
            alert("你剪切了文本!");
        }
    </script>
</body>
</html>